package com.jingtai.platform.service.shop;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jingtai.core.entity.shop.GoodsSpecifications;
import com.jingtai.platform.util.ResultUtil;

/**
 * 商品规格表
 *
 * @author sunlaiqian
 * @date 2020-12-09 15:39:05
 */
public interface GoodsSpecificationsService extends IService<GoodsSpecifications> {

    ResultUtil GoodsSpecificationslist(Integer page, Integer limit, String conditions);

    ResultUtil getGoodsSpecificationsById(Long id);

    ResultUtil addGoodsSpecifications(GoodsSpecifications goodsSpecifications);

    ResultUtil editGoodsSpecifications(GoodsSpecifications goodsSpecifications);

    ResultUtil delGoodsSpecificationsById(Long id);

    ResultUtil selectGoodsSpecificationsOfOne();

    ResultUtil selectGoodsSpecificationsOfAll();

    ResultUtil selectGoodsSpecificationsByGoodsCode(String goodsCode,Integer type);

    String formatJson(String json,String goodsCode,Integer type);
}

